Skip to content

feat(tmux-sessionizer): preview project tree in the directory picker#415

Draft
etrobert-bot wants to merge 2 commits into
mainfrom
split-project-preview
Draft

feat(tmux-sessionizer): preview project tree in the directory picker#415
etrobert-bot wants to merge 2 commits into
mainfrom
split-project-preview

Conversation

@etrobert-bot

Copy link
Copy Markdown
Collaborator

Split out of #412 (part 2 of 2).

Adds an eza --tree --level=2 preview (falling back to ls) to the project/directory picker, so you see a project's layout before switching to it. The highlighted name is resolved to a path with the same setup/doc/~/work case logic the script already uses. Uses the responsive --preview-window 'right,60%,<45(up,55%)' so the preview stacks vertically in a narrow popup.

Adds eza to runtimeInputs (falls back to ls from coreutils if eza ever fails).

Companion PR: #414 (session-pane preview for the -e picker).

Verified: nix build .#tmux-sessionizer succeeds (shellcheck passes), eza confirmed on the wrapped script's PATH.

🤖 Generated with Claude Code

etrobert-bot and others added 2 commits July 5, 2026 01:20
In the project picker, show an `eza --tree` preview of the highlighted
directory (falling back to `ls`), resolving the name to its path with the
same case logic the script already uses. The preview-window is responsive
(stacks on top when the popup is narrow) so nothing overflows.

Adds eza to runtimeInputs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Panes are never narrower than 80 columns, where the 80%-popup is wide
enough for a side-by-side preview. Use a plain 'right:60%' and drop the
responsive stacked-layout alternative.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant